package com.cfl.user.fallback;

import org.springframework.stereotype.Component;

import com.cfl.model.User;
import com.cfl.user.feign.UserFeign;

@Component
public class UserFeignFallback implements UserFeign{

	public User findUserByName(String name) {
		System.out.println("falback: ticketcloud-user-module find_user");
		return new User();
	}

	public User findUserByNameAndPassword(String name, String password) {
		System.out.println("falback: ticketcloud-user-module find_user_name_password");
		return new User();
	}

	public Boolean addUser(String name, String password) {
		System.out.println("falback: ticketcloud-user-module add_user_name_password");
		return false;
	}
}
